package top.kaoshanji.r2ch07c;

import top.kaoshanji.r2ch07b.ForumService;

/**
 * 代码清单-r2ch07c-225页a：将要被代理的目标对象
 * @author kaoshanji
 * ^_^
 * create time 2025/5/7 11:26
 */
public class ForumServiceImpl implements ForumService {

    @Override
    public void removeTopic(int topicId) {

        System.out.println("模拟删除Topic记录:"+topicId);
        try {
            Thread.currentThread().sleep(20);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }

    @Override
    public void removeForum(int forumId) {

        System.out.println("模拟删除Forum记录:"+forumId);
        try {
            Thread.currentThread().sleep(20);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }
}
